package com.example.bootstudy;

import com.example.bootstudy.bean.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class BootStudyApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(BootStudyApplication.class, args);


        User user01 = run.getBean("user01", User.class);
        System.out.println(user01);
    }

}
